package study

func Counter() func() int {
	count := 0 // count 逃逸到堆，被闭包捕获
	return func() int {
		count++
		return count
	}
}
